<?php
// 增加广告单
class AttachAction extends Action {
	//上传附件
	public function ajaxUpload(){
		//执行附件上传操作
		$attach_type	=	t($_REQUEST['type']);
	
		//$options['uid']			=	$this->mid;

		$info	=	D('Attach')->upload();
		if($info['status']==true){
			unset($info['info']['savename']);
			unset($info['info']['savepath']);
			unset($info['info']['hash']);
			unset($info['info']['attach_type']);
		}
		//上传成功
		echo json_encode($info);
	}
}